package com.ruoyi.play.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户选择记录对象 where_to_go_user_choice
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
public class WhereToGoUserChoice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选择记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 模块ID */
    @Excel(name = "模块ID")
    private Long moduleId;

    /** 选择的选项ID */
    @Excel(name = "选择的选项ID")
    private Long optionId;

    /** 选择时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "选择时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date choiceTime;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ipAddress;

    /** 设备信息 */
    @Excel(name = "设备信息")
    private String deviceInfo;

    /** 模块信息 */
    private WhereToGoModule module;

    /** 选项信息 */
    private WhereToGoOption option;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setModuleId(Long moduleId) 
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId() 
    {
        return moduleId;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setChoiceTime(Date choiceTime) 
    {
        this.choiceTime = choiceTime;
    }

    public Date getChoiceTime() 
    {
        return choiceTime;
    }
    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }
    public void setDeviceInfo(String deviceInfo) 
    {
        this.deviceInfo = deviceInfo;
    }

    public String getDeviceInfo() 
    {
        return deviceInfo;
    }

    public WhereToGoModule getModule() 
    {
        return module;
    }

    public void setModule(WhereToGoModule module) 
    {
        this.module = module;
    }

    public WhereToGoOption getOption() 
    {
        return option;
    }

    public void setOption(WhereToGoOption option) 
    {
        this.option = option;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("moduleId", getModuleId())
            .append("optionId", getOptionId())
            .append("choiceTime", getChoiceTime())
            .append("ipAddress", getIpAddress())
            .append("deviceInfo", getDeviceInfo())
            .append("createTime", getCreateTime())
            .append("module", getModule())
            .append("option", getOption())
            .toString();
    }
} 